package com.example.score.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("class")
public class Class {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long classId;
    private Long courseId;
    private Date startTime;
    private Date endTime;
    private Long numbers;
    @TableField(exist=false)
    private String courseName;

}
